/**
 * Generate time : 2011-11-15 4:24:35
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLTernateHandle table comment : 三违处理记录
 */
public class ZMCLTernateHandleProcess_x extends DaoEPBase {

	private String fdTernateRecordId = " "; /* 三违记录ID */
	private String fdTernateNoteId = " "; /* 三违通知书ID */
	private String fdEtrainingRecordId = " "; /* 培训情况记录ID */
	private String fdIsPenalty = " "; /* 是否罚款 */
	private String fdPenaltyId = " "; /* 罚款单ID */
	private Double fdPenalty = new Double(0); /* 罚款金额 */
	private String fdSuggestion = " "; /* 处理意见 */
	private String fdIsTraining = " "; /* 是否培训 */
	private String fdAllow = " "; /* 允许上岗 */
	private String fdCreateTime = " "; /* 创建时间 */

	private String fdTernateFeedbackId = " "; /* 主键 */
	private String fdTernateHandleId = " "; /* 处理记录ID */
	private String fdFeedback = " "; /* 三违反馈 */
	private String fdFeedbackDate = " "; /* 反馈日期 */
	private String fdFeedbackPeopleId = " "; /* 反馈人ID */
	private String fdFeedbackPeople = " "; /* 反馈人 */
	private String fdCreateTimeF = " "; /* 创建时间 */
	
	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
		eiColumn = new EiColumn("fdTernateRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTernateNoteId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违通知书ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEtrainingRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("培训情况记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsPenalty");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("是否罚款");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPenaltyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("罚款单ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPenalty");
		eiColumn.setType("N");
		eiColumn.setScaleLength(2);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("罚款金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSuggestion");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("处理意见");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsTraining");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("是否培训");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAllow");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("允许上岗");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCreateTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);
		
		//----------------------------
		eiColumn = new EiColumn("fdTernateFeedbackId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTernateHandleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("处理记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedback");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("三违反馈");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("反馈日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("反馈人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdFeedbackPeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("反馈人");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdCreateTimeF");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("创建时间");
		eiMetadata.addMeta(eiColumn);
	}

	/**
	 * the constructor
	 */
	public ZMCLTernateHandleProcess_x() {
		initMetaData();
	}

	/**
	 * get the fdTernateRecordId - 三违记录ID
	 * 
	 * @return the fdTernateRecordId
	 */
	public String getFdTernateRecordId() {
		return this.fdTernateRecordId;
	}

	/**
	 * set the fdTernateRecordId - 三违记录ID
	 */
	public void setFdTernateRecordId(String fdTernateRecordId) {
		this.fdTernateRecordId = fdTernateRecordId;
	}

	/**
	 * get the fdTernateNoteId - 三违通知书ID
	 * 
	 * @return the fdTernateNoteId
	 */
	public String getFdTernateNoteId() {
		return this.fdTernateNoteId;
	}

	/**
	 * set the fdTernateNoteId - 三违通知书ID
	 */
	public void setFdTernateNoteId(String fdTernateNoteId) {
		this.fdTernateNoteId = fdTernateNoteId;
	}

	/**
	 * get the fdEtrainingRecordId - 培训情况记录ID
	 * 
	 * @return the fdEtrainingRecordId
	 */
	public String getFdEtrainingRecordId() {
		return this.fdEtrainingRecordId;
	}

	/**
	 * set the fdEtrainingRecordId - 培训情况记录ID
	 */
	public void setFdEtrainingRecordId(String fdEtrainingRecordId) {
		this.fdEtrainingRecordId = fdEtrainingRecordId;
	}

	/**
	 * get the fdIsPenalty - 是否罚款
	 * 
	 * @return the fdIsPenalty
	 */
	public String getFdIsPenalty() {
		return this.fdIsPenalty;
	}

	/**
	 * set the fdIsPenalty - 是否罚款
	 */
	public void setFdIsPenalty(String fdIsPenalty) {
		this.fdIsPenalty = fdIsPenalty;
	}

	/**
	 * get the fdPenaltyId - 罚款单ID
	 * 
	 * @return the fdPenaltyId
	 */
	public String getFdPenaltyId() {
		return this.fdPenaltyId;
	}

	/**
	 * set the fdPenaltyId - 罚款单ID
	 */
	public void setFdPenaltyId(String fdPenaltyId) {
		this.fdPenaltyId = fdPenaltyId;
	}

	/**
	 * get the fdPenalty - 罚款金额
	 * 
	 * @return the fdPenalty
	 */
	public Double getFdPenalty() {
		return this.fdPenalty;
	}

	/**
	 * set the fdPenalty - 罚款金额
	 */
	public void setFdPenalty(Double fdPenalty) {
		this.fdPenalty = fdPenalty;
	}

	/**
	 * get the fdSuggestion - 处理意见
	 * 
	 * @return the fdSuggestion
	 */
	public String getFdSuggestion() {
		return this.fdSuggestion;
	}

	/**
	 * set the fdSuggestion - 处理意见
	 */
	public void setFdSuggestion(String fdSuggestion) {
		this.fdSuggestion = fdSuggestion;
	}

	/**
	 * get the fdIsTraining - 是否培训
	 * 
	 * @return the fdIsTraining
	 */
	public String getFdIsTraining() {
		return this.fdIsTraining;
	}

	/**
	 * set the fdIsTraining - 是否培训
	 */
	public void setFdIsTraining(String fdIsTraining) {
		this.fdIsTraining = fdIsTraining;
	}

	/**
	 * get the fdAllow - 允许上岗
	 * 
	 * @return the fdAllow
	 */
	public String getFdAllow() {
		return this.fdAllow;
	}

	/**
	 * set the fdAllow - 允许上岗
	 */
	public void setFdAllow(String fdAllow) {
		this.fdAllow = fdAllow;
	}

	/**
	 * get the fdCreateTime - 创建时间
	 * 
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}

	/**
	 * set the fdCreateTime - 创建时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}
	
	//----------------------------------
	/**
	 * get the fdTernateFeedbackId - 主键
	 * 
	 * @return the fdTernateFeedbackId
	 */
	public String getFdTernateFeedbackId() {
		return this.fdTernateFeedbackId;
	}

	/**
	 * set the fdTernateFeedbackId - 主键
	 */
	public void setFdTernateFeedbackId(String fdTernateFeedbackId) {
		this.fdTernateFeedbackId = fdTernateFeedbackId;
	}

	/**
	 * get the fdTernateHandleId - 处理记录ID
	 * 
	 * @return the fdTernateHandleId
	 */
	public String getFdTernateHandleId() {
		return this.fdTernateHandleId;
	}

	/**
	 * set the fdTernateHandleId - 处理记录ID
	 */
	public void setFdTernateHandleId(String fdTernateHandleId) {
		this.fdTernateHandleId = fdTernateHandleId;
	}

	/**
	 * get the fdFeedback - 三违反馈
	 * 
	 * @return the fdFeedback
	 */
	public String getFdFeedback() {
		return this.fdFeedback;
	}

	/**
	 * set the fdFeedback - 三违反馈
	 */
	public void setFdFeedback(String fdFeedback) {
		this.fdFeedback = fdFeedback;
	}

	/**
	 * get the fdFeedbackDate - 反馈日期
	 * 
	 * @return the fdFeedbackDate
	 */
	public String getFdFeedbackDate() {
		return this.fdFeedbackDate;
	}

	/**
	 * set the fdFeedbackDate - 反馈日期
	 */
	public void setFdFeedbackDate(String fdFeedbackDate) {
		this.fdFeedbackDate = fdFeedbackDate;
	}

	/**
	 * get the fdFeedbackPeopleId - 反馈人ID
	 * 
	 * @return the fdFeedbackPeopleId
	 */
	public String getFdFeedbackPeopleId() {
		return this.fdFeedbackPeopleId;
	}

	/**
	 * set the fdFeedbackPeopleId - 反馈人ID
	 */
	public void setFdFeedbackPeopleId(String fdFeedbackPeopleId) {
		this.fdFeedbackPeopleId = fdFeedbackPeopleId;
	}

	/**
	 * get the fdFeedbackPeople - 反馈人
	 * 
	 * @return the fdFeedbackPeople
	 */
	public String getFdFeedbackPeople() {
		return this.fdFeedbackPeople;
	}

	/**
	 * set the fdFeedbackPeople - 反馈人
	 */
	public void setFdFeedbackPeople(String fdFeedbackPeople) {
		this.fdFeedbackPeople = fdFeedbackPeople;
	}
	
	/**
	 * get the fdCreateTimeF - 创建时间
	 * 
	 * @return the fdCreateTimeF
	 */
	public String getFdCreateTimeF() {
		return this.fdCreateTimeF;
	}

	/**
	 * set the fdCreateTimeF - 创建时间
	 */
	public void setFdCreateTimeF(String fdCreateTimeF) {
		this.fdCreateTimeF = fdCreateTimeF;
	}
	
	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdTernateRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateRecordId")), fdTernateRecordId));
		setFdTernateNoteId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateNoteId")), fdTernateNoteId));
		setFdEtrainingRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEtrainingRecordId")), fdEtrainingRecordId));
		setFdIsPenalty(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsPenalty")), fdIsPenalty));
		setFdPenaltyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPenaltyId")), fdPenaltyId));
		setFdPenalty(NumberUtils.toDouble(StringUtils.toString(map.get("fdPenalty")), fdPenalty));
		setFdSuggestion(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSuggestion")), fdSuggestion));
		setFdIsTraining(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsTraining")), fdIsTraining));
		setFdAllow(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAllow")), fdAllow));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
		
		setFdTernateFeedbackId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateFeedbackId")), fdTernateFeedbackId));
		setFdTernateHandleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateHandleId")), fdTernateHandleId));
		setFdFeedback(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedback")), fdFeedback));
		setFdFeedbackDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackDate")), fdFeedbackDate));
		setFdFeedbackPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackPeopleId")), fdFeedbackPeopleId));
		setFdFeedbackPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdFeedbackPeople")), fdFeedbackPeople));
		setFdCreateTimeF(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTimeF")), fdCreateTimeF));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdTernateRecordId", StringUtils.toString(fdTernateRecordId, eiMetadata.getMeta("fdTernateRecordId")));
		map.put("fdTernateNoteId", StringUtils.toString(fdTernateNoteId, eiMetadata.getMeta("fdTernateNoteId")));
		map.put("fdEtrainingRecordId", StringUtils.toString(fdEtrainingRecordId, eiMetadata.getMeta("fdEtrainingRecordId")));
		map.put("fdIsPenalty", StringUtils.toString(fdIsPenalty, eiMetadata.getMeta("fdIsPenalty")));
		map.put("fdPenaltyId", StringUtils.toString(fdPenaltyId, eiMetadata.getMeta("fdPenaltyId")));
		map.put("fdPenalty", StringUtils.toString(fdPenalty, eiMetadata.getMeta("fdPenalty")));
		map.put("fdSuggestion", StringUtils.toString(fdSuggestion, eiMetadata.getMeta("fdSuggestion")));
		map.put("fdIsTraining", StringUtils.toString(fdIsTraining, eiMetadata.getMeta("fdIsTraining")));
		map.put("fdAllow", StringUtils.toString(fdAllow, eiMetadata.getMeta("fdAllow")));
		map.put("fdCreateTime", StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));

		map.put("fdTernateFeedbackId", StringUtils.toString(fdTernateFeedbackId, eiMetadata.getMeta("fdTernateFeedbackId")));
		map.put("fdTernateHandleId", StringUtils.toString(fdTernateHandleId, eiMetadata.getMeta("fdTernateHandleId")));
		map.put("fdFeedback", StringUtils.toString(fdFeedback, eiMetadata.getMeta("fdFeedback")));
		map.put("fdFeedbackDate", StringUtils.toString(fdFeedbackDate, eiMetadata.getMeta("fdFeedbackDate")));
		map.put("fdFeedbackPeopleId", StringUtils.toString(fdFeedbackPeopleId, eiMetadata.getMeta("fdFeedbackPeopleId")));
		map.put("fdFeedbackPeople", StringUtils.toString(fdFeedbackPeople, eiMetadata.getMeta("fdFeedbackPeople")));
		map.put("fdCreateTimeF", StringUtils.toString(fdCreateTimeF, eiMetadata.getMeta("fdCreateTimeF")));
		
		return map;

	}
}